/*
 * Product_10.cpp
 *
 *  Created on: 2012-8-21
 *      Author: huangyansheng
 */

#include "Product_10.h"
//根据商品的id，获取商品的价格
int Product_10::getPrice(int id) {
	if (id == 1)
		return 10;
	if (id == 2)
		return 20;
	if (id == 5)
		return 50;
	if (id == 10)
		return 100;
	if (id == 1001)
		return 0;
	if (id > 10000)
		return -1;
	return -1;
}



